package com.chunxiadong.service;

import com.chunxiadong.entity.Avatar;
import com.chunxiadong.entity.Picture;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @auther QiuShangcheng
 * @create 2021/6/8
 */
public interface PictureService {
    int setAvatar(Avatar avatar);

    Picture queryPictureById(Integer id);

    int addPicture(Picture picture);

    Picture queryPictureByPicAddr(String picAddr);

    int deletePicture(Integer id);

    int updatePicture(Picture picture);

    List<Picture> getAllPicture();

    PageInfo<Picture> getAllPicturePageInfo(Integer pageNum, Integer rows);


}
